//
//  PhotoBrowserVC.h
//  XinLang_OC
//
//  Created by WONG on 16/6/11.
//  Copyright © 2016年 cheuhui. All rights reserved.
//

#import <UIKit/UIKit.h>

@class PhotoBrowserModel;

@interface PhotoBrowserVC : UIViewController

/**
 *  collectionView
 */
@property (nonatomic,strong) UICollectionView *collectionView;

- (instancetype)initWithModels:(NSArray<PhotoBrowserModel *> *)models indexPath:(NSIndexPath *)indexPath;

#pragma mark - 转场动画相关

/// 提供转场动画的过渡视图
- (UIImageView *)modalTempImageView;

/// 计算大图的位置,大图和小图的比例是一样的.拿小图来计算也可以
- (CGRect)modalTargetFrame;

/// 关闭视图
- (UIImageView *)dismissTempImageView;

/// dismiss最终缩放位置
- (CGRect)dismissTargetRect;

@end






